import { defineStore } from "pinia";
// 如果是开发环境，不设置 baseURL，这样请求将通过 Vite 的代理
export const infoStore = defineStore("infoData", {
   state: () => ({
      userInfo: {},
      token: '',
   }),
   actions: {
      setUserInfo(data) {
         this.userInfo = data;
      },
      setToken(data) {
         this.token = data;
      },
   },

});
